#pragma once

#include <QObject>
#include <QString>
#include <QFile>

class XymodemFile : public QObject
{
	Q_OBJECT
public:
	XymodemFile(const QString& file_path);
	~XymodemFile();

	int size() const;
	QString filename() const;
	QByteArray get_block(int block);
	void set_block_size(int size);

private:
	int m_seek;
	int m_block_size;
	QFile *m_fileHandler;
};
